inherited FrmSaidasModeloRel: TFrmSaidasModeloRel
  Left = 409
  Top = 266
  Caption = 'Sa'#237'da Modelo'
  ClientHeight = 248
  ClientWidth = 449
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited pnlOpcoes: TPanel
    Width = 449
    Height = 163
    object Label1: TLabel
      Left = 16
      Top = 16
      Width = 41
      Height = 13
      Caption = 'Empresa'
    end
    object Label2: TLabel
      Left = 16
      Top = 64
      Width = 38
      Height = 13
      Caption = 'Per'#237'odo'
    end
    object Label3: TLabel
      Left = 192
      Top = 64
      Width = 46
      Height = 13
      Caption = 'Vendedor'
    end
    object Label4: TLabel
      Left = 16
      Top = 112
      Width = 26
      Height = 13
      Caption = 'Caixa'
    end
    object Label6: TLabel
      Left = 192
      Top = 112
      Width = 129
      Height = 13
      Caption = 'Usu'#225'rio/Operador de Caixa'
    end
    object Label8: TLabel
      Left = 88
      Top = 88
      Width = 6
      Height = 13
      Caption = 'a'
    end
    object Label5: TLabel
      Left = 56
      Top = 112
      Width = 42
      Height = 13
      Caption = 'Situa'#231#227'o'
    end
    object Label10: TLabel
      Left = 384
      Top = 16
      Width = 44
      Height = 13
      Caption = 'Tipo Doc'
    end
    object EdtEstEmpCod: TEdit
      Left = 16
      Top = 32
      Width = 57
      Height = 21
      Hint = 'Empresa'
      TabOrder = 0
      OnExit = EdtEstEmpCodExit
    end
    object EdtDataInicial: TEdit
      Left = 16
      Top = 80
      Width = 65
      Height = 21
      TabOrder = 3
      OnExit = EdtDataInicialExit
    end
    object EdtDataFinal: TEdit
      Left = 104
      Top = 80
      Width = 81
      Height = 21
      TabOrder = 4
      OnExit = EdtDataFinalExit
    end
    object EdtVendedorCod: TEdit
      Left = 192
      Top = 80
      Width = 49
      Height = 21
      Hint = 'Vendedor'
      TabOrder = 5
      OnExit = EdtVendedorCodExit
    end
    object EdtCaixa: TEdit
      Left = 16
      Top = 128
      Width = 33
      Height = 21
      TabOrder = 7
      OnExit = EdtCaixaExit
    end
    object EdtUsuarioCod: TEdit
      Left = 192
      Top = 128
      Width = 49
      Height = 21
      Hint = 'Usu'#225'rio'
      TabOrder = 9
      OnExit = EdtUsuarioCodExit
    end
    object BtnEmpresa: TBitBtn
      Left = 74
      Top = 32
      Width = 21
      Height = 21
      Caption = '...'
      TabOrder = 1
      TabStop = False
      OnClick = BtnEmpresaClick
    end
    object EdtEstEmpNom: TStaticText
      Left = 96
      Top = 32
      Width = 281
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      TabOrder = 11
    end
    object BtnVendedor: TBitBtn
      Left = 242
      Top = 80
      Width = 21
      Height = 21
      Caption = '...'
      TabOrder = 6
      TabStop = False
      OnClick = BtnVendedorClick
    end
    object EdtVendedorNome: TStaticText
      Left = 264
      Top = 80
      Width = 169
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      TabOrder = 12
    end
    object CB_TipoRel: TComboBox
      Left = 56
      Top = 128
      Width = 129
      Height = 22
      Style = csOwnerDrawFixed
      ItemHeight = 16
      ItemIndex = 0
      TabOrder = 8
      Text = 'N'#195'O CANCELADOS'
      OnChange = CB_TipoRelChange
      Items.Strings = (
        'N'#195'O CANCELADOS'
        'CANCELADOS')
    end
    object BtnUsuario: TBitBtn
      Left = 242
      Top = 128
      Width = 21
      Height = 21
      Caption = '...'
      TabOrder = 10
      TabStop = False
      OnClick = BtnUsuarioClick
    end
    object EdtUsuarioNome: TStaticText
      Left = 264
      Top = 128
      Width = 169
      Height = 21
      AutoSize = False
      BorderStyle = sbsSingle
      TabOrder = 13
    end
    object cbTipo: TComboBox
      Left = 384
      Top = 32
      Width = 49
      Height = 21
      CharCase = ecUpperCase
      ItemHeight = 13
      MaxLength = 1
      TabOrder = 2
      Items.Strings = (
        'L'
        'U'
        'T')
    end
  end
  inherited pnlBotoes: TPanel
    Top = 204
    Width = 449
    inherited btnGerarRelatorio: TBitBtn
      Top = 5
      Height = 34
    end
    inherited BtnSair: TBitBtn
      Left = 334
      Top = 5
      Height = 34
    end
    inherited BitBtn1: TBitBtn
      Top = 5
      Height = 34
      Caption = 'Salvar em &PDF'
    end
    inherited BtnGerarPlanilha: TBitBtn
      Left = 221
      Top = 5
      Height = 34
    end
  end
  inherited pnlCabecalho: TPanel
    Width = 449
    Caption = 'Sa'#237'da Modelo'
  end
  inherited sql_dataset_principal: TSQLClientDataSet
    CommandText = 
      'SELECT SD.SAD_DOCUME, SD.SAD_DATAVE,'#13#10'SI.SAI_IDFDOC, SI.SAI_SEQI' +
      'TEM, SI.SAI_IDFITEM, EP.ESP_CODIGO, EP.ESP_DESCRI, SI.SAI_PRETAB' +
      ','#13#10'SI.SAI_PREVEN, SI.SAI_QUANTI, SI.SAI_SERIAL, SI.SAI_CODHISTOR' +
      'ICO, HI.HIS_HISTORICO,'#13#10'(SI.SAI_PREVEN * SI.SAI_QUANTI) as Total' +
      #13#10'FROM SAIDA_DOCUMENTO SD, SAIDA_ITEM SI'#13#10'left join ESTOQUE_PROD' +
      'UTO EP ON EP.ESP_IDFCOD = SI.SAI_IDFITEM'#13#10'left join HISTORICOS  ' +
      '    HI ON HI.HIS_IDFCOD = SI.SAI_CODHISTORICO'#13#10'where SD.SAD_DATA' +
      'VE between '#39'01/01/2000'#39' and '#39'12/31/2008'#39#13#10'  and SD.SAD_IDFDOC = ' +
      'SI.SAI_IDFDOC'#13#10'order by SD.SAD_DATAVE, SD.SAD_DOCUME, SI.SAI_SEQ' +
      'ITEM;'
    Left = 200
    Top = 17
  end
  inherited RvSystemPDF: TRvSystem
    Left = 320
    Top = 33
  end
end
